import request from '@/utils/requset'


// 请求swiper返回的数据类型
import type {Result$0Type,waterFlow} from './modules/worthType'

/**
 * @description 获取 值得买 的swiper数据
 * @请求地址 https://m.you.163.com/topic/v1/know/navWap.json
 * @returns Result$0Type
 * @argument none
 */
export const getWorthSwiperData = () => {
    return request.get<any,Result$0Type>('/topic/v1/know/navWap.json')
}


/**
 * @description 获取 瀑布流 数据
 * @请求地址 https://m.you.163.com/topic/v1/find/recAuto.json?page=2&size=2
 * @returns waterFlow
 * @argument page size
 */
export const getWaterFlowData = (page:number=1,size:number=2) => {
    return request.get<any,waterFlow>(`/topic/v1/find/recAuto.json?page=${page}&size=${size}`)
}